﻿using System;
using System.Collections.Generic;
using System.Text;
using Data.Attributes;
using System.Data;

namespace BusinessLayer.Tables
{
    [Tables("SPECIAL1")]
    public class Db_Special1 : MasterTable
    {
        #region Fields
        int rec_id;
        DateTime create_date;
        int create_user;
        DateTime update_date;
        int update_user;
        bool locked;
        bool hidden;
        string special_code;
        string special_name;
        #endregion

        #region Prpoerties
        [Fields("rec_id", true, true, true, false, true, false, false, 4, SqlDbType.Int, true, false, 0, -1, -1, -1, -1)]
        public int ID
        {
            get { return rec_id; }
            set { rec_id = value; }
        }
        [Fields("create_date", true, true, true, false, true, true, false, 8, SqlDbType.DateTime, false, false, 0, -1, -1, -1, -1)]
        public DateTime CreateDate
        {
            get { return create_date; }
            set { create_date = value; }
        }
        [Fields("create_user", true, true, true, false, true, true, false, 4, SqlDbType.Int, false, false, 0, -1, -1, -1, -1)]
        public int CreateUser
        {
            get { return create_user; }
            set { create_user = value; }
        }
        [Fields("update_date", true, true, true, false, true, true, false, 8, SqlDbType.DateTime, false, false, 0, -1, -1, -1, -1)]
        public DateTime UpdateDate
        {
            get { return update_date; }
            set { update_date = value; }
        }
        [Fields("update_user", true, true, true, false, true, true, false, 4, SqlDbType.Int, false, false, 0, -1, -1, -1, -1)]
        public int UpdateUser
        {
            get { return update_user; }
            set { update_user = value; }
        }
        [Fields("locked", true, true, true, false, true, true, false, 1, SqlDbType.Bit, false, false, 0, -1, -1, -1, -1)]
        public bool Locked
        {
            get { return locked; }
            set { locked = value; }
        }
        [Fields("hidden", true, true, true, false, true, true, false, 1, SqlDbType.Bit, false, false, 0, -1, -1, -1, -1)]
        public bool Hidden
        {
            get { return hidden; }
            set { hidden = value; }
        }
        [Fields("special_code", true, true, true, true, true, false, false, 25, SqlDbType.NVarChar, false, false, 0, -1, -1, -1, -1)]
        public string SpecialCode
        {
            get { return special_code; }
            set { special_code = value; }
        }
        [Fields("special_name", true, true, true, false, true, true, true, 50, SqlDbType.NVarChar, false, false, 0, -1, -1, -1, -1)]
        public string SpecialName
        {
            get { return special_name; }
            set { special_name = value; }
        }
        #endregion
    }
}
